package com.fyqp.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fyqp.util.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author efire
 * @since 2022-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Product extends BaseBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("car_type")
    @Excel(name = "车型")
    private String carType;

    @TableField("map_num")
    @Excel(name = "图号", width = 40)
    private String mapNum;

    @TableField("is_use")
    private Integer isUse;

    @Excel(name = "名称", width = 40)
    private String name;

    @Excel(name = "单价")
    private BigDecimal price;

    @TableField(exist = false)
    @Excel(name = "种类")
    private String typeName;

    @Excel(name = "产地")
    private String factory;

    @Excel(name = "库存")
    private Long stock;


    @Excel(name = "备注", width = 80)
    private String mark;

    @TableField("add_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date addTime;

    @TableField("last_update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastUpdateTime;

    @TableField("type_id")
    private Long typeId;

}
